home *** CD-ROM | disk | FTP | other *** search
- Press <ctrl> F to unfold a line, or <ctrl> C to exit from help
-
- FED 1.0
- ________ ________ ____
- / ______/ / ______/ / __ \
- / / / / / / \ \
- / /_____ / /_____ / / / /
- / ______/ / ______/ / / / /
- / / / / / / / /
- / / / /_____ / /___/ /
- /_/ /_______/ /_______/
-
- A folding text editor for the Atari ST
-
- By Shawn Hargreaves,
- 1 Salisbury Road,
- Market Drayton,
- Shropshire,
- England,
- TF9 1AJ
- Email slh100@tower.york.ac.uk (until 1996)
-
- FED is a small, fast, and powerful text editor. It features:
-
- - reverse video text selection
- - emacs style kill/yank
- - automatic indentation
- - block indent/unindent
- - wordwrap
- - can fold blocks of text out of sight, using code indentation
- - brace match function
- - incremental 'as you type' searching
- - 'grep' function to search/replace through multiple files
- - up to 20 files can be opened at once
- - handles all 256 characters
- - binary mode for hacking program and data files
- - macros and key repeat
- - shell function to run external commands from within FED
- - supports Mark Williams C -e error handling
- - can use 50 line mode in high rez, and 80 columns in low rez
- - configuration utility to alter the key bindings
- - built in tetris game
-
- Copyright:
- FED is copyright Shawn Hargreaves, 1994. You can use it or abuse it in
- any way you like, and are welcome to redistribute copies, subject to
- the following conditions:
-
- - You must not distribute copies of FED for profit.
-
- - If you wish to distribute copies, you must include all of the files
- README, FED.CFG, FED.TOS, FED.DOC, FED_CFG.TOS, and FED_CFG.DOC, and
- you must not alter any of these files.
-
- - I am not under any circumstances to be held responsible for any
- damage, real or imagined, that this program may cause.
-
- Since this is a first release, there are probably a few bugs that I
- have missed. If you find any, or have any suggestions for improvements,
- please let me know. Although I am not asking for any payment, this took
- a long time to write, and if you feel like showing your appreciation by
- sending me a fiver I really wouldn't mind. If you are interested in
- seeing the source code I would be happy to send you a copy.
-
- Cursor movement:
- ⇦,⇨,⇧,⇩: move the cursor
- <shift> ⇦,⇨: go to the start or end of the line
- <ctrl> ⇦,⇨: move a word to the left or right
- <shift> ⇧,⇩: move up or down a screen at a time
- <HOME>: go to the start of the file
- <shift> HOME: go to the end of the file
- <ctrl> G: go to line
- <ctrl> M: go to the brace matching the one under the cursor
- <ctrl> =: display cursor position
- <ctrl> >: go to next error (Mark Williams C)
- <ctrl> <: go to previous error (Mark Williams C)
-
- The show cursor position function displays a line of the form
- * aw <filename> - line <l> - col <c> - byte <b> - 0x<h> (<d>)
- The asterisk, if present, indicates that the file has been altered
- since the last save. The 'a' and 'w' indicate respectively that the
- file is in auto-indent mode or wordwrap mode. <l> and <c> are the
- current cursor line and column, <b> is the offset in bytes from the
- start of the file, <h> is the hex value of the character under the
- cursor, and <d> is the decimal value.
-
- FED supports Mark Williams C compilation error handling via the -e
- command line option. The error file should contain lines of the format
- '<line>: <error message>' or '<line>: <file>: <error message>'.
- FED will automatically position the cursor on the correct line of the
- correct file, displaying the error message preceded by [a/b], where 'a'
- is the current error number and 'b' is the total number of errors. Use
- <ctrl> < and <ctrl> > to move through the list of errors. To abort the
- compilation, exit from FED via <ctrl> Q or <ctrl> C instead of <ctrl> Z.
-
- Folding & marking:
- <ctrl> B: mark a block of text (press ESC to finish)
- <ctrl> F: fold/unfold
- <ctrl> E: expand all folds
-
- To mark a block of text, press <ctrl> B. You can then move the cursor
- to the other end of the block, using the normal movement keys
- (including searching). When a block has been marked, many FED functions
- will act on the marked text rather than the whole file. Any of the kill
- functions will kill the entire block. Fold will fold the selected text,
- rather than using indentation, and print will only print the marked
- block. Pressing TAB will indent the block, and pressing BACKSPACE while
- in the leading spaces will unindent the block. To cancel a selection,
- press <ctrl> B again, or ESC.
-
- Folding is a feature which allows a section of text to be 'folded' away
- out of sight, and replaced on the display by a single line which is
- displayed in reverse video. Pressing <ctrl> F will make a fold from the
- current line (or remove a fold if the line is already folded). The size
- of the fold is determined by the indentation of the text, or can be
- specified by marking a block (see above). FED should correctly fold
- most C or Pascal code, although occasional problems may be caused by
- erratic indentation. It can be configured to automatically fold a file
- as it is loaded, and all of the folds in a file can be removed by
- pressing <ctrl> E. All of the editing functions continue to work with a
- folded file: in particular killing a fold line will kill all of the
- text within the fold.
-
- Editing:
- <TAB>: indent line (or marked block)
- <ctrl> I: insert character by ASCII code
- <ctrl> T: transpose (swap) two characters
- <ctrl> L: convert word to lower case
- <ctrl> U: convert word to upper case
- <ctrl> A: toggle automatic indentation on/off
- <INSERT>: toggle insert/overwrite mode
- <ctrl> /: set word wrap column (0 for off)
- <ctrl> R: reformat line (wordwrap must be turned on)
-
- Deleting:
- <BACKSPACE>: backspace (or unindent marked block)
- <DEL>: delete next character
- <ctrl> D: delete next character
- <ctrl> DEL> kill next word (or marked block)
- <ctrl> K: kill to end of line (or marked block)
- <ctrl> X: kill line (or marked block)
- <ctrl> Y: yank text back from kill buffer
- <UNDO>: yank text back from kill buffer
-
- Searching:
- <ctrl> S: search/replace
- <ctrl> *: search multiple files (grep)
- <ctrl> @: toggle search case sensitivity on/off
-
- FED supports incremental searching, which means that it attempts to
- find a string matching the search pattern as you type it in. You can
- backspace if you make a mistake, and can use the left and right (or up
- and down) arrow keys to skip to the next or previous occurrences of the
- string. To use the search pattern from the previous search, press ENTER
- (or the right/down arrow key) before typing anything. To search for the
- word beneath the cursor, press <ctrl> S a second time. To exit from a
- search, press ESC or ENTER.
-
- To do a search/replace, after you have entered the search string press
- <ctrl> R. FED will prompt for the replace string, and then work through
- the file prompting before each replacement is made. Press 'y', SPACE or
- ENTER to make the replacement, or <ctrl> SPACE or <ctrl> ENTER to
- replace all occurrences. To skip past a match, press 'n' or use the
- arrow keys.
-
- The search files (grep) function is exactly like a normal search/replace
- except that FED will prompt you to enter a file specification, and when
- the end of the first file is reached it will automatically load and
- search the next file which matches the specification.
-
- Files:
- <ctrl> O: open file
- <ctrl> V: view a list of all open files
- <ctrl> N: switch to the next open file
- <ctrl> SPACE: switch to the next open file
- <ctrl> P: print file (or marked block)
- <ctrl> W: write file to the disk
- <ctrl> Z: save everything and exit
- <ctrl> C: close file
- <ctrl> Q: quit
-
- The open file function prompts for a file name. It accepts wildcards,
- and if the file is already loaded it will just switch to it, instead of
- loading it from the disk. To force a file to load in binary mode, press
- <ctrl> ENTER after typing the filename, instead of just ENTER.
-
- FED allows the editing of non-ASCII files via binary mode. In this
- mode TAB, CR and LF are not treated specially when the file is loaded:
- instead an EOL is assummed every 64 bytes. The file can be edited as
- usual, but the layout of lines on the screen is purely visual, since a
- CR/LF is not added to each line when it is saved or printed. The hex
- value of the character under the cursor is displayed at the bottom of
- the screen.
-
- To display graphics characters, FED uses the BIOS function 3 (Bconout)
- with a parameter of 5. Unfortunately MiNT 0.95 (the only version I have
- tested) appears to ignore the 5, treating this call in the same way as
- a Bconout(2). This means that binary files and files which contain
- graphics characters (such as the character set listing below) will not
- be displayed correctly. This problem does not occur if FED is run under
- TOSWIN, only when run from the desktop or a shell. Anyone know a
- solution to this?
-
- Miscellaneous:
- <ctrl> (: start recording a macro
- <ctrl> ): stop recording the macro
- <ctrl> ENTER: play the macro
- <ctrl> #: repeat the last keystroke
- <ctrl> !: pass command to shell
- <ctrl> %: change screen mode (width 40/80, height 25/50)
- <ctrl> J: play tetris
- HELP: display help
- <ctrl> H: display help
- <ctrl> ?: display help
-
- To pass a command to a shell, FED first attempts to use the shell_p
- pointer (which is supported by several shells, including gulam) to pass
- the command to the current instance of the shell. If this is not set,
- it will run the shell named in the SHELL environment variable, and if
- SHELL is not set it will attempt to run the command directly. It will
- search PATH for program files, but running a GEM application may cause
- problems.
-
- FED has a built in tetris game, which is accessed by pressing <ctrl> J.
- Use the ⇦ and ⇨ keys to move the shape, ⇧ to rotate it, and <SPACE> to
- drop it into place to complete a row. Have fun!
-
- Most operations can be cancelled by pressing ESC, <ctrl> C or <ctrl> G.
- Numbers can be entered in decimal, hex or octal, using the C convention
- of 0x for a hex number and a leading 0 for octal.
-
- Command line options:
- <filename> - load <filename>
- -e <filename> - this file is the Mark Williams C error buffer
- -b <filename> - load this file in binary mode
- -f <filename> - fold this file on load
- -w - use wide 80 character mode (low rez only)
- -h - use high 50 line mode (high rez only)
- -s - standard mode (ignore -w, -h, and config settings)
-
- For details of how to install and configure FED, see FED_CFG.DOC
-
- Character set: